package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongHistoryArchitectureRowMapper implements RowMapper<NanDongHistoryArchitecture> {
    @Override
    public NanDongHistoryArchitecture mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongHistoryArchitecture nd = new NanDongHistoryArchitecture();
        nd.setNumber(resultSet.getString("number"));
        nd.setOld_name(resultSet.getString("old_name"));
        nd.setCurrent_name(resultSet.getString("current_name"));
        nd.setAddress(resultSet.getString("address"));
        nd.setBuild_time(resultSet.getString("build_time"));
        nd.setStreet(resultSet.getString("street"));
        nd.setType(resultSet.getString("type"));
        nd.setProperty(resultSet.getString("property"));
        nd.setArea(resultSet.getString("area"));
        nd.setAmount(resultSet.getString("amount"));
        nd.setSingle_num(resultSet.getString("single_num"));
        nd.setStructure_type(resultSet.getString("structure_type"));
        nd.setUnit_class(resultSet.getString("unit_class"));
        nd.setPerson(resultSet.getString("person"));
        nd.setUse_person(resultSet.getString("use_person"));
        nd.setManager_unit(resultSet.getString("manager_unit"));
        nd.setName_tel(resultSet.getString("name_tel"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
